﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;

namespace CloudObserverDB
{
    public class CloudObservation
    {
        public string CloudObservationId { get; set; }

        bool processed = false;

        public bool Processed
        {
            get { return processed; }
            set { processed = value; }
        }

        public string CameraId { get; set; }

        public string Lat { get; set; }

        public string Long { get; set; }

        public int Frequency { get; set; }

        public string ImageUrl { get; set; }

        public string City { get; set; }

        public DateTime ImageTimeStamp { get; set; }

        public DateTime ObservationTimeStamp { get; set; }

        public byte[] Image { get; set; }

        public string Query { get; set; }

        [NotMapped]
        public string Id { get { return this.CloudObservationId; } set { this.CloudObservationId = value; } }
    }
}
